// 封装起来，使其他组件用起来更方便
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token(state) {
    return state.user.token
  },
  name: state => state.user.userInfo.username,
  photo: state => state.user.userInfo.staffPhoto,
  routes: state => state.permission.routes
}
export default getters
